package listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class MyServletContextListener implements ServletContextListener {

    public MyServletContextListener() {
    	System.out.println("listener context contruct...");
    }

    public void contextInitialized(ServletContextEvent arg0) {
    	System.out.println("listener context start...");
    	int count = 0;
    	arg0.getServletContext().setAttribute("count", count);
    }

    public void contextDestroyed(ServletContextEvent arg0) {
    	System.out.println("listener context destroy...");
    }
	
}
